from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
from ajax_select import urls as ajax_select_urls

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'projeto_estoque.views.home', name='home'),
    # url(r'^projeto_estoque/', include('projeto_estoque.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    (r'^admin/lookups/', include(ajax_select_urls)),

)

urlpatterns += patterns('',
    url(r'^admintools/', include('admin_tools.urls')),
    (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/js'}),
    (r'^media/(.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
)
